package com.jp.kefu.schedule;

import com.jp.kefu.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author lijin
 */
@Component
public class RefreshTokenSchedule {

    @Autowired
    private TokenService tokenService;
    @Scheduled(fixedRate = 54000000)
    public void run(){
        tokenService.refreshToken();
    }
}
